<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>TodoList</title>
    <style>
      /* 重置 <body> 的外边距和内边距 */
      body {
        margin: 0;
        padding: 0;
        overflow: hidden; /* 禁止页面滚动 */
      }
    </style>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
    <script>
      // 检查浏览器是否支持 prefers-color-scheme 媒体查询
      if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
        console.log('浏览器处于深色模式');
        document.querySelector('html').classList.add('dark')
      } else {
        console.log('浏览器处于浅色模式');
        document.querySelector('html').classList.remove('dark')
      }
    </script>
  </body>
</html>
